﻿namespace Magic.System;

[Injection]
public class SysUserRoleService : ISysUserRoleService
{
    public async Task<List<SysUserRole>> GetListByUserId(int UserId)
    {
        return await SugarContext.Instance
            .Queryable<SysUserRole>()
            .Where(m => m.Uid == UserId)
            .ToListAsync();
    }
}
